/*      All code produced by the American Heritage School Robotics Team,
 *      The Ninjineers (#2383), for the 2013 FRC Season.
 */

package tk.ninjineers2383.y2013.InterfaceDevices;
import edu.wpi.first.wpilibj.Joystick;

public class ControlJoystick 
{
    private Joystick joy1;
    
    public ControlJoystick(int port)    // Creates joystick with designated port
    {
        joy1 = new Joystick(port);
    }
    
    public double getY()        // Returns y axis value
    {
        return joy1.getRawAxis(2);
    }
    
    public double getX()        // Returns x axis value
    {
        return joy1.getRawAxis(1);
    }
    
    public double getThrottle()
    {
        return joy1.getRawAxis(3);
    }
    
    public boolean checkButton(int button)
    {
        return joy1.getRawButton(button);
    }
    
}
